/**
 * @api {get} /cart/:userid 获取我的购物车信息
 * @apiName getcart
 * @apiGroup cart
 * 
 * @apiHeader {String} authorization auth_token
 *
 * @apiParam {Number} userid 用户ID.
 *
 * @apiSuccess {Number} code 状态码.
 * @apiSuccess {String} msg 信息.
 * @apiSuccess {Object} data 响应数据.
 *
 * @apiSuccessExample 成功-响应:
 *     HTTP/1.1 200 OK
 */

/**
 * @api {post} /cart/0 添加购物车
 * @apiName addcart
 * @apiGroup cart
 * 
 * @apiHeader {String} authorization auth_token
 *
 * @apiParam {Number} user_id 用户ID.
 * @apiParam {Number} goods_id 商品ID.
 * @apiParam {Number} goods_num 数量.
 *
 * @apiSuccess {Number} code 状态码.
 * @apiSuccess {String} msg 信息.
 * @apiSuccess {Object} data 响应数据.
 *
 * @apiSuccessExample 成功-响应:
 *     HTTP/1.1 200 OK
 */


/**
 * @api {put} /cart/:id 修改购物车
 * @apiName editcart
 * @apiGroup cart
 * 
 * @apiHeader {String} authorization auth_token
 *
 * @apiParam {Number} id 购物车ID.
 * @apiParam {Number} user_id 用户ID.
 * @apiParam {Number} goods_num 数量.
 *
 * @apiSuccess {Number} code 状态码.
 * @apiSuccess {String} msg 信息.
 * @apiSuccess {Object} data 响应数据.
 *
 * @apiSuccessExample 成功-响应:
 *     HTTP/1.1 200 OK
 */


/**
 * @api {delete} /cart/:userid 删除购物车
 * @apiName delcart
 * @apiGroup cart
 * 
 * @apiHeader {String} authorization auth_token
 *
 * @apiParam {Number} userid 用户ID.
 * @apiParam {String} goods_id 商品ID(1,2,3,4,5,6).
 *
 * @apiSuccess {Number} code 状态码.
 * @apiSuccess {String} msg 信息.
 * @apiSuccess {Object} data 响应数据.
 *
 * @apiSuccessExample 成功-响应:
 *     HTTP/1.1 200 OK
 */